package com.kusiri.kframework.ui
{
	import com.kusiri.kframework.KfContext;
	import com.kusiri.kframework.component.KfComponent;
	
	import mx.core.UIComponent;

	/**
	 * A basic (abstract) implementation to extend
	 */
	public class KfUiComponent extends KfComponent implements IKfUiComponent
	{
		public function KfUiComponent()
		{
		}
		
		// TODO: should create a KfUiEventDescriptions class 
		public var _eventDescriptions : Object = {};
			
		/**
		 * Link an action to an event
		 */
		public function get __eventDescriptions() : Object
		{
			return _eventDescriptions;
		}
		
		
		private var _eventActions : IKfUiEventActions;
		
		/**
		 * Set the actions that are linked to events
		 */
		public function set __eventActions( eventActions : IKfUiEventActions ) : void
		{
			_eventActions = eventActions;
		}
		
		/**
		 * Get the actions that are linked to events
		 */
		public function get __eventActions() : IKfUiEventActions
		{
			return _eventActions;
		}
					
		
		/**
		 * Get the Flex UI Component
		 */
		public function get __uiComponent() : UIComponent
		{
			return null;
		}
		
		
	}
}